The Makefile used by shared-mime-info is one big race with the SUBDIRS 
option and the dependency specifically calling make all combining to
create multiple make instances all of which may try and build targets
like update-mime-database.

This patch removes those options meaning make can correctly identify
dependencies and stop itself racing itself.

RP 10/10/2011

Upstream-Status: Pending

Index: shared-mime-info-0.91/Makefile.am
===================================================================
--- shared-mime-info-0.91.orig/Makefile.am	2011-10-10 21:47:19.834173921 +0100
+++ shared-mime-info-0.91/Makefile.am	2011-10-10 21:45:57.000000000 +0100
@@ -1,5 +1,3 @@
-SUBDIRS=. po
-
 INCLUDES = $(ALL_CFLAGS)
 
 packagesdir = $(datadir)/mime/packages
@@ -70,8 +68,7 @@
 
 all: check create-pot
 
-create-pot:
-	$(MAKE) -C po shared-mime-info.pot
+create-pot: po
 
 check: create-pot freedesktop.org.xml update-mime-database check-translations
 	if test -e $(top_builddir)/freedesktop.org.xml; then \
